package com.biostime.springdraw.modules.sd.dao;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.biostime.springdraw.common.mybatis.MyBatisDao;
import com.biostime.springdraw.common.persistence.CrudDao;
import com.biostime.springdraw.modules.sd.dto.DistributedAwardDto;
import com.biostime.springdraw.modules.sd.entity.Shareaward;

/**
 * 分享奖品表Dao
 * @author chenweicheng
 * @version 2016-05-03
 */
@MyBatisDao
public interface ShareawardDao extends CrudDao<Shareaward> {
	public List<HashMap<String,Object>> getShareAwards(String shareId);
		
	public void touchAward(@Param("awardId")String awardId, @Param("shareId") String shareId);
	
	public Shareaward getAward(@Param("awardId")String awardId, @Param("shareId") String shareId);
	
	public int recoveryAward();
	
    public List<DistributedAwardDto> shareExitsAwards(@Param("code") String code);
    
    public int shareExitsOneAward(@Param("code") String code,@Param("awardId")String awardId);
}